<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>钢瓶管理系统</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" type="text/css" href="lib/easyui/themes/metro/easyui.css"/>
  <link rel="stylesheet" type="text/css" href="css/index.css"/>
 </head>
 <body>
 	<div class="header" id="header">
        <div class="sys-name">
            <div class="name">
                <div class="toolbar">
                	<div class="item" id="accountinfo">
						<div class="popPanel" style="width:260px;">
							<div class="tip"></div>
							<table>
								<colgroup><col width="100"/></colgroup>
								<tr><td class="label">当前帐户：</td><td>${accountInfo.name}</td></tr>
								<tr><td class="label">所属角色：</td><td>${accInfo['roleName']}</td></tr>
								<tr><td class="label">所属部门：</td><td>${accInfo['deptName']}</td></tr>
								<tr><td class="label">所属公司：</td><td>${accInfo['companyName']}</td></tr>
								<tr><td class="label">上次登录时间：</td><td><fmt:formatDate value="${accountInfo.loginTime}" pattern="yyyy-MM-dd hh:mm"/></td></tr>
								<tr><td class="label">上次登录IP：</td><td>${accountInfo.ip}</td></tr>
								<tr><td class="label">本次登录时间：</td><td><fmt:formatDate value="${now}" pattern="yyyy-MM-dd hh:mm"/></td></tr>
								<tr><td class="label">本次登录IP：</td><td>${ip}</td></tr>
							</table>
							<div class="btbox"><a href="javascript:void(0);" class="link" id="updatePass">修改密码</a></div>
						</div>
						admin
					</div>
                    <div class="item" style="background-position:0 -17px;" id="about">
                    	<div class="popPanel" style="width:200px;">
							<div class="tip"></div>
							<table>
								<colgroup><col width="105"/></colgroup>
								<tr><td class="label">产品名称：</td><td>钢瓶管理系统</td></tr>
								<tr><td class="label">　版本号：</td><td>${version}</td></tr>
								<tr><td class="label">技术支持QQ：</td><td>43047066</td></tr>
							</table>
						</div>
                    	关于
                    </div>
                    <div class="item" style="background-position:0 -36px;" id="exit">退出</div>
                </div>
            </div>
        </div>
        <div class="msg-box">
            <div class="search-box">
	            <div class="search">
	               <input type="text" value="搜索" maxlength="30" id="keyword"/>
	               <input type="button" id="search-bt"/>
	            </div>
			    <div class="searchList" id="searchList">
			        <div class="top"></div>
			        <ul><div style="padding:5px 10px;">加载中...</div></ul>
			        <div class="bottom"></div>
			    </div>
            </div>
		    <div class="message" id="message">
		    	<a href="javascript:;">库存总数</a><b>200</b>，<a href="javascript:;">临近报废期数</a><b>10</b>，
		    	<a href="javascript:;">已过报废期数</a><b>2</b>，<a href="javascript:;">临近返还期数</a><b>5</b>，
		    	<a href="javascript:;">已过返还期数</a><b>9</b>，<a href="javascript:;">临近检验期数</a><b>15</b>，
		    	<a href="javascript:;">已过检验期数</a><b>49</b></div>
		</div>
        <div class="line"></div>
    </div>
    <!-- 菜单 -->
    <div class="menu-closed" id="menu-closed"">
        <div id="menu-open" title="展开"></div>
    </div>
    <div class="main-menu" id="menu">
        <div class="title">
            <span class="menu-close" id="menu-close" title="折叠"></span>
                                系统菜单
        </div>
        <div class="content">
            <div class="loadmenu" id="loadmenu"></div>
            <ul id="menu-ul">
            	<c:forEach items="${permission}" var="entry">
            		<c:set var="item" value="${entry.value}"/>
            		<c:if test="${item.parentId == 0}">
		                <li>
		                    <div class="menu-group ${item.iconCls}">${item.name}</div>
		                    <ul class="sub">
		                    	<c:forEach items="${permission}" var="entry1">
		                    		<c:set var="item1" value="${entry1.value}"/>
				            		<c:if test="${item1.parentId == item.id}">
				                        <li url="${item1.msg}" id="${item1.action}"><div>${item1.name}</div></li>
				                    </c:if>
            					</c:forEach>
		                    </ul>
		                </li>
            		</c:if>
            	</c:forEach>
            </ul>
        </div>
        <div class="bottom"></div>
    </div>
    <div class="main max" id="main">
        <div class="nav"><div id="nav"></div></div>
        <div class="frame-box" id="frameBox">
             <div id="mainTip"><div>正在加载....</div></div>
             <iframe id="mainIframe" name="mainIframe" frameborder="0" allowtransparency="true" src="about:blank"></iframe>
        </div>
    </div>
    <div class="footer">版本号：${version}</div>
    <div id="updpassWin" title="修改密码" style="display:none;padding:10px;"></div>
	<script type="text/javascript" src="lib/jquery.min.js"></script>
	<script type="text/javascript" src="lib/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="lib/easyui/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="js/index.js"></script>
 </body>
</html>
